package com.ruoyi.gather.api;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.gather.api.domain.ErpSellerProduct;
import com.ruoyi.gather.api.domain.ErpSellerProductExpand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(contextId = "remoteSellerProductService", value = ServiceNameConstants.GATHER_SERVICE)
public interface RemoteSellerProductService {

    /**
     * 通过id获取个人库产品信息
     */
    @PostMapping("/seller/sellerProductExpand/getSellerProductExpandInfo")
    public R<Object> getSellerProductExpandInfo(@RequestBody ErpSellerProductExpand erpSellerProductExpand);

    @GetMapping("/seller/sellerProduct/getSellerProductInfo")
    R<Object> getSellerProductInfo(@RequestBody ErpSellerProduct erpSellerProductSel);
}
